package com.tsmti.system.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * path：com.tsmti.lab.entity
 * @author: zjn
 * time: 2018/7/2 11:42
 * Description:
 */
@Entity
@Table(name = "PIMS_NOTICEINFO")
@Where(clause = "delFlag = 0")
public class NoticeInfo extends BaseDataEntity<Long> {
    /**
     * id
     */
    private Long id;
    /**
     * 内容
     */
    private String content;
    /**
     * 截止日期
     */
    private Date expirationDate;


    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PIMS_NOTICEINFO")
    @SequenceGenerator(name = "SEQ_PIMS_NOTICEINFO", sequenceName = "NOTICEINFO_SEQUENCE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "CONTENT")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "EXPIRATIONDATE")
    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }


}
